<template>
    <div class="loginInfo">
        <div class="item">
            地区:{{addr}}
        </div>
        <div class="item">
            创建时间: {{userInfo.create_time}}
        </div>
        <div class="item">
            登陆时间: {{userInfo.login_time}}
        </div>
    </div>
</template>

<script setup>
import {computed, ref} from 'vue'
const userInfo = computed(() => JSON.parse(localStorage.getItem(process.env.VUE_APP_STORAGENAME)))
const addr = ref('')
userInfo.value.region.splice(1, 1)
addr.value = userInfo.value.region.toString()
</script>
